<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${keepConsumptionType.id}" class="form-control" type="hidden" required>
                        <input id="keepAccountId" name="keepAccountId" th:value="${keepConsumptionType.keepAccountId}" class="form-control" type="hidden" required>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">消费类型：</label>
                            <div class="col-sm-8">
                                <select name="consumptionType" id="consumptionType"
                                        class="form-control chosen-select" tabindex="2" required>
                                    <option value="1" th:selected="${keepConsumptionType.consumptionType == 1}">收入</option>
                                    <option value="2" th:selected="${keepConsumptionType.consumptionType == 2}">支出</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">收支类型名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" th:value="${keepConsumptionType.name }" class="form-control" type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/keep/keepConsumptionType/edit.js"></script>
</body>
</html>
